package algo;

import model.Speaker;
import model.SpeakerRole;

public class MatchingException extends Exception {

	private final SpeakerRole role;
	private final Speaker speaker;

	public SpeakerRole getRole() {
		return role;
	}

	public MatchingException(String arg0) {
		super(arg0);
		role = null;
		speaker = null;
	}

	public MatchingException(SpeakerRole role) {
		this.role = role;
		speaker = null;
	}

	public MatchingException(Speaker speaker) {
		this.speaker = speaker;
		role = null;
	}

	public Speaker getSpeaker() {
		return speaker;
	}
	
}
